package com.zy.design.pattern.composite;

/**
 * @author zhaoyi
 * @date 2021/4/29 18:24
 */

public class FileNode extends IFileSystemNode {

    public FileNode(String name, IFileSystemNode list) {
        super(name, list);
    }

    @Override
    public String toString() {
        return getFileName();
    }
}
